package com.example.demo.Calss16_graph;

import java.util.HashMap;
import java.util.HashSet;

/**
 * @program: java_base
 * @description: 图结构抽象 图
 * @author: zhouhongtao
 * @happyCreateTime: 2022/03/02 09:54
 */
public class Graph {
    // 一个数字节点只存一次，这点要注意
    public HashMap<Integer,Node> nodes;

    public HashSet<Edge> edges;

    public Graph() {
        nodes = new HashMap<>();
        edges = new HashSet<>();
    }
}
